import React, {Component} from 'react';
import {Body, Button, Header, Left, Right, Text, Title, View} from 'native-base'
import PropTypes from 'prop-types';
import {ScrollView} from "react-native"
import {DX2Dialog} from './DX2Dialog'

class DxScreen extends Component {
  showDXdialogNative=()=>{
    DX2Dialog.show()
  }
  render() {
    return (
        <>
          <Header noShadow>
            <Left/>
            <Body style={{flex: 3}}>
            <Title>DXScreen</Title>
            </Body>
            <Right/>
          </Header>
          <ScrollView>
            {/*<View padder>*/}
              {/*<Button block>*/}
                {/*<Text>DXdialogRn</Text>*/}
              {/*</Button>*/}
            {/*</View>*/}
            <View padder>
              <Button block onPress={this.showDXdialogNative}>
                <Text>顶象native dialog</Text>
              </Button>
            </View>
          </ScrollView>
        </>
    );
  }
}

DxScreen.propTypes = {};

export default DxScreen;
